3.9 \(\int -\csc ^2(e+f x) \, dx\)

Optimal. Leaf size=10 \[ \frac {\cot (e+f x)}{f} \]

[Out]

cot(f*x+e)/f

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3767, 8} \[ \frac {\cot (e+f x)}{f} \]

Antiderivative was successfully verified.

[In]

Int[-Csc[e + f*x]^2,x]

[Out]

Cot[e + f*x]/f

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 3767

Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> -Dist[d^(-1), Subst[Int[ExpandIntegrand[(1 + x^2)^(n/2 - 1), x]
, x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]

Rubi steps

\begin {align*} \int -\csc ^2(e+f x) \, dx &=\frac {\operatorname {Subst}(\int 1 \, dx,x,\cot (e+f x))}{f}\\ &=\frac {\cot (e+f x)}{f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 10, normalized size = 1.00 \[ \frac {\cot (e+f x)}{f} \]

Antiderivative was successfully verified.

[In]

Integrate[-Csc[e + f*x]^2,x]

[Out]

Cot[e + f*x]/f

________________________________________________________________________________________

fricas [A]  time = 0.42, size = 18, normalized size = 1.80 \[ \frac {\cos \left (f x + e\right )}{f \sin \left (f x + e\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-csc(f*x+e)^2,x, algorithm="fricas")

[Out]

cos(f*x + e)/(f*sin(f*x + e))

________________________________________________________________________________________

giac [A]  time = 0.16, size = 13, normalized size = 1.30 \[ \frac {1}{f \tan \left (f x + e\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-csc(f*x+e)^2,x, algorithm="giac")

[Out]

1/(f*tan(f*x + e))

________________________________________________________________________________________

maple [A]  time = 0.31, size = 11, normalized size = 1.10 \[ \frac {\cot \left (f x +e \right )}{f} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-csc(f*x+e)^2,x)

[Out]

cot(f*x+e)/f

________________________________________________________________________________________

maxima [A]  time = 0.34, size = 12, normalized size = 1.20 \[ \frac {1}{f \tan \left (f x + e\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-csc(f*x+e)^2,x, algorithm="maxima")

[Out]

1/(f*tan(f*x + e))

________________________________________________________________________________________

mupad [B]  time = 13.18, size = 10, normalized size = 1.00 \[ \frac {\mathrm {cot}\left (e+f\,x\right )}{f} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-1/sin(e + f*x)^2,x)

[Out]

cot(e + f*x)/f

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ - \int \csc ^{2}{\left (e + f x \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(-csc(f*x+e)**2,x)

[Out]

-Integral(csc(e + f*x)**2, x)

________________________________________________________________________________________